home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / events / CollectionEvent.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.2 KB  |  43 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class CollectionEvent extends Event
  9.    {
  10.       mx_internal static const VERSION:String = "3.0.0.0";
  11.       
  12.       public static const COLLECTION_CHANGE:String = "collectionChange";
  13.       
  14.       public var kind:String;
  15.       
  16.       public var location:int;
  17.       
  18.       public var items:Array;
  19.       
  20.       public var oldLocation:int;
  21.       
  22.       public function CollectionEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:String = null, param5:int = -1, param6:int = -1, param7:Array = null)
  23.       {
  24.          super(param1,param2,param3);
  25.          this.kind = param4;
  26.          this.location = param5;
  27.          this.oldLocation = param6;
  28.          this.items = !!param7 ? param7 : [];
  29.       }
  30.       
  31.       override public function toString() : String
  32.       {
  33.          return formatToString("CollectionEvent","kind","location","oldLocation","type","bubbles","cancelable","eventPhase");
  34.       }
  35.       
  36.       override public function clone() : Event
  37.       {
  38.          return new CollectionEvent(type,bubbles,cancelable,kind,location,oldLocation,items);
  39.       }
  40.    }
  41. }
  42.  
  43.